package one;

public class Dog<E,T> implements Animal<E,T>{
    public static void main(String[] args) {
        Dog<Integer,String> dog = new Dog<>();
        Integer integer = dog.eat("123");
        System.out.println(integer);
    }

    @Override
    public E eat(T t) {
//        return (E)Integer.valueOf(t+"");
        return (E)Integer.valueOf((String) t);
    }
}
